package kk.service.impl;

import kk.dao.ManagerDao;
import kk.dao.impl.ManagerDaoImpl;
import kk.domain.Manager;
import kk.service.ManagerService;

public class ManagerServiceImpl implements ManagerService {
    private ManagerDao managerDao=new ManagerDaoImpl();

    /**
     * 管理员登录
     * @param name
     * @param password
     * @return
     */
    @Override
    public Manager login(String name, String password) {
        return managerDao.findMangerByNameAndPassword(name,password);
    }
}
